Skip to content

feat: add Custom Copyright Name and URL redirection#424

Merged
Xinecraft merged 1 commit into
MineTrax:developfrom
Xteri08:develop
Jul 4, 2026
Merged

feat: add Custom Copyright Name and URL redirection#424
Xinecraft merged 1 commit into
MineTrax:developfrom
Xteri08:develop

Conversation

@Xteri08

@Xteri08 Xteri08 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 3, 2026 18:36
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1a7c6f4e-e1a6-4fbf-be2a-d2677fab94b8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@what-the-diff

what-the-diff Bot commented Jul 3, 2026

Copy link
Copy Markdown

PR Summary

  • Introduction of Copyright Fields in General Settings:
    This update provides the ability to include copyright details on the platform. Both the name and the url of the copyright can now be validated and saved.

  • Model Updates for Copyright Details:
    The internal structure which holds the general settings data has been updated to store the newly introduced copyright name and url.

  • Organizing Data with New Migration:
    A new database structure was set up to allow the storage of the copyright name and url in the system settings.

  • Enhancements to General Setting User Interface:
    Users will now see new input fields for entering copyright names and urls in the general settings section.

  • Updated Footer Information:
    The footer of the platform has been updated to show copyright information. It will display the copyright name and, if provided, a clickable link to the designated copyright url.

  • Providing Tests for Newly Added Features:
    New system checks have been introduced to confirm whether admins can view and update copyright fields correctly. It also checks the proper clearing and validity of the copyright url.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configurable copyright display settings (name + optional URL) that flow from Spatie Settings → admin UI → footer rendering, enabling a branded/footer link without hardcoding.

Changes:

  • Adds copyright_name and copyright_url to GeneralSettings (and a settings migration to persist them).
  • Extends the admin general settings form + controller validation/persistence for the new fields.
  • Updates the main footer to display a custom name and optionally render it as a link; adds feature tests for viewing/updating/validating these settings.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Feature/Admin/GeneralSettingTest.php Adds feature coverage for viewing/updating/clearing/validating the new settings.
resources/default/js/Shared/MainFooter.vue Renders the copyright name with optional URL link in the footer.
resources/default/js/Pages/Admin/Setting/GeneralSetting.vue Adds inputs for copyright name/URL to the admin settings UI.
database/settings/2026_07_03_000000_add_copyright_fields_to_general_settings.php Adds two new settings keys under the general settings group.
app/Settings/GeneralSettings.php Declares the new settings properties so they can be serialized/shared.
app/Http/Controllers/Admin/Settings/GeneralSettingController.php Validates and saves the new fields on update.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 9 to +13
const canShowCustomFooter = !isAdminRoute && customFooterEnabled;

const generalSettings = usePage().props.generalSettings;
const displayCopyrightName = generalSettings.copyright_name || generalSettings.site_name;
const copyrightUrl = generalSettings.copyright_url;
@Xinecraft Xinecraft merged commit 57f2857 into MineTrax:develop Jul 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants